package com.mlnx.work.pojo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("周计划提交表单参数类")
public class ArrangeForm {

    @ApiModelProperty("项目或任务ID")
    @NotNull(message = "ID不能为空")
    private Integer id;

    @ApiModelProperty("周计划")
    @NotEmpty(message = "周计划不能为空")
    private String weekPlan;

    @ApiModelProperty("起始时间")
    @NotNull(message = "起始时间不能为空")
    private Long startTime;

    @ApiModelProperty("结束时间")
    @NotNull(message = "结束时间不能为空")
    private Long endTime;
}
